from django.urls import re_path

from homes import views

#/api/v1.0/houses/index

urlpatterns = [
    re_path(r'^api/v1.0/areas$', views.AreaView.as_view()),
    re_path(r'^api/v1.0/user/houses$', views.HouseListView.as_view()),
    re_path(r'^api/v1.0/houses/index$',views.HouseIndexView.as_view()),
    re_path(r'^api/v1.0/user/houses$', views.HouseListView.as_view()),
    re_path(r'^api/v1.0/houses/(?P<house_id>\d+)/images$', views.HomeImage.as_view()),
    # 房屋详情
    re_path(r'^api/v1.0/houses/(?P<house_id>\d+)$', views.HouseDetailView.as_view()),
    # 房屋搜索和发布房源
    re_path(r'^api/v1.0/houses$', views.HousesView.as_view()),

]